import Mock from 'mockjs'
import homeApi from './mockData/home'
import userApi from "./mockData/user";
import loginApi from './mockData/login'
// 拦截请求，并返回homeApi的数据
Mock.mock('/home/getHomeData',homeApi.getHomeData)
Mock.mock(/user\/getUser/,'get',userApi.getUserList)
// 添加用户数据
Mock.mock(/user\/addUser/,'post',userApi.createUser)
// 更新用户数据
Mock.mock(/user\/editUser/,'post',userApi.updateUser)
// 删除用户
Mock.mock(/user\/deleteUser/,'get',userApi.deleteUser)
// 登录
Mock.mock(/login/,'post',loginApi.getMenu)
